<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GonzalesAdminFIListing.aspx.cs" Inherits="GonzalesAdminFIListing" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="WebStyle.css" rel="stylesheet" type="text/css" />
    
    <link rel="stylesheet" href="js/windowfiles/dhtmlwindow.css" type="text/css" />
    <script type="text/javascript" src="js/windowfiles/dhtmlwindow.js">

    /***********************************************
    * DHTML Window Widget-  Dynamic Drive (www.dynamicdrive.com)
    * This notice must stay intact for legal use.
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/

    </script>

    <link rel="stylesheet" href="js/modalfiles/modal.css" type="text/css" />
    <script type="text/javascript" src="js/modalfiles/modal.js"></script>
    <script type="text/javascript" src="js/modaltools.js"></script>
    
    <script type="text/javascript" language="javascript">
                    
        function AnalyzeResultByParent() {
            
            var Result = AnalyzeModalResult(document.getElementById("ModalResult"));
            
            document.getElementById("LabelValue_Personnel").innerHTML = Result["EmployeeName"];
            document.getElementById("HiddenField_PersonnelInternalID").value = Result["EmployeeInternalID"];
                        
        }
        

    </script>       
</head>
<body>
<form id="form1" runat="server">
  <input type="hidden" name="ModalResult" id="ModalResult" />
  <div>
    <table width="100%" border="0" cellspacing="1" cellpadding="8">
      <tr>
        <td class="PageTitle"><asp:Label ID="Label_PageTitle" Text='Administration Panel' runat="server" />
        </td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="1" cellpadding="2">
          <tr>
            <td width="170" rowspan="3" valign="top"><asp:Label CssClass="FormTitle" ID="Label_Information" runat="server" Text='Personnel :: Finance Verifiers Listing' /></td>
            <td width="8" rowspan="3" class="VerticalDivider"><p>&nbsp;</p>
                  <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p></td>
            <td valign="top"><asp:Table CellPadding="5" CellSpacing="0" ID="Table_MessageBox" Width="100%" runat="server" Visible="false">
              <asp:TableRow>
                <asp:TableCell CssClass="ErrorBox" ></asp:TableCell>
              </asp:TableRow>
            </asp:Table></td>
          </tr>
          <tr>
            <td valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0" class="FormBorder">
              <tr>
                <td class="TableResultCriteriaBar"><table width="100%" border="0" cellspacing="0" cellpadding="1">
                  <tr>
                    <td><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_ByEntity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_ByEntity_SelectedIndexChanged"></asp:DropDownList>
                      <asp:DropDownList ID="DropDownList_ByCompany" runat="server" OnSelectedIndexChanged="DropDownList_ByCompany_SelectedIndexChanged" CssClass="FormDropDown" AutoPostBack="True"></asp:DropDownList></td>
                    <td align="right"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortBy_SelectedIndexChanged"></asp:DropDownList>
                              <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortOrder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortOrder_SelectedIndexChanged"></asp:DropDownList></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td valign="top"><asp:GridView ID="GridViewResult" runat="server" OnRowCreated = "OnRowCreated" AutoGenerateColumns="False" CssClass="FormBorder" PageSize="20" Width="100%">
                  <columns>
                    <asp:BoundField DataField="EmployeeID" HeaderText="Employee ID">
                      <itemstyle HorizontalAlign="Center" Width="120px" />
                    </asp:BoundField>
                      <asp:BoundField DataField="ADName" HeaderText="Active Directory ID">
                          <HeaderStyle HorizontalAlign="Center" />
                          <ItemStyle HorizontalAlign="Center" />
                      </asp:BoundField>
                    <asp:BoundField DataField="DisplayName" HeaderText="Finance Verifier Name">
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                      <asp:BoundField DataField="ApprovingLimit" HeaderText="Verified Amount">
                          <ItemStyle HorizontalAlign="Center" />
                          <HeaderStyle HorizontalAlign="Center" />
                      </asp:BoundField>
                    <asp:BoundField DataField="DeleteLink" HtmlEncode="False">
                      <itemstyle HorizontalAlign="Center" Width="120px" />
                    </asp:BoundField>
                    </columns>
                  <RowStyle CssClass="GridViewItem" />
                  <headerstyle CssClass="GridViewHeader" />
                </asp:GridView>
                </td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top"><table width="500" border="0" cellpadding="5" cellspacing="1" class="FormBorder">
              <tr>
                <td colspan="3" class="GridViewHeader"><asp:Label ID="Label_AddNew" Text='New Finance Verifier' runat="server" /></td>
              </tr>
              <tr>
                <td class="FormLineItem"><asp:Label CssClass="FormField" ID="Label_Entity" runat="server" Text="Entity:" /></td>
                <td colspan="2" class="FormLineItem"><asp:Label CssClass="NormalBodyText" ID="LabelValue_Entity" runat="server" /></td>
              </tr>
              <tr>
                <td class="FormLineItemAlt"><asp:Label CssClass="FormField" ID="Label_Company" runat="server" Text="Company:" /></td>
                <td colspan="2" class="FormLineItemAlt"><asp:Label CssClass="NormalBodyText" ID="LabelValue_Company" runat="server" /></td>
                </tr>
              <tr>
                <td class="FormLineItem"><asp:Label CssClass="FormField" ID="Label_Personnel" runat="server" Text='Finance Verifier Name:' /></td>
                <td class="FormLineItem"><asp:Label CssClass="NormalBodyText" ID="LabelValue_Personnel" runat="server" />
                        <asp:HiddenField ID="HiddenField_PersonnelInternalID" runat="server" />                </td>
                <td width="10" align="right" class="FormLineItem"><asp:Button CssClass="FormButton" ID="Button_Browse" runat="server" Text="Browse" /></td>
              </tr>
              <tr>
                <td class="FormLineItem"><asp:Label CssClass="FormField" ID="Label_ApprovedLimit" runat="server" Text='Verified Amount:' /></td>
                <td colspan="2" class="FormLineItem"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_Currency" runat="server"></asp:DropDownList>
                    <asp:TextBox Columns="5" CssClass="FormTextBox" ID="TextBox_Min" runat="server" Text="0" TextMode="SingleLine" />                    
                    <asp:Label CssClass="NormalBodyText" ID="Label_To" runat="server" Text="To" />                    
<asp:TextBox Columns="5" CssClass="FormTextBox" ID="TextBox_Max" runat="server" Text="0" TextMode="SingleLine" /></td>
              </tr>
              
              <tr>
                <td colspan="3" class="FormLineItemAlt"><asp:Button CssClass="FormButton" ID="Button_Submit" runat="server" Text="Add" OnClick="Button_Submit_Click" /></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
